//
//  UIButton+commots.m
//  GesturePassword
//
//  Created by 好米有易 on 2017/9/7.
//  Copyright © 2017年 好米有易. All rights reserved.
//

#import "UIButton+commots.h"

@implementation UIButton (commots)

+ (instancetype)buttonWithImage:(NSString *)imageName selecteImage:(NSString *)selectedImgName {
    
    UIButton *button = [self buttonWithType:UIButtonTypeCustom];
    
    [button setImage:[UIImage imageNamed:imageName] forState:UIControlStateNormal];
    
    [button setImage:[UIImage imageNamed:selectedImgName] forState:UIControlStateHighlighted];
    
    return button;
}

@end
